//
//  HLRtcFloatingWindow.m
//  YueYue
//
//  Created by hulu001 on 2023/9/7.
//

#import "HLRtcFloatingWindow.h"

@implementation HLRtcFloatingWindow

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.renderView];
        self.layer.shadowColor = [UIColor colorWithRed:211/255.0 green:211/255.0 blue:211/255.0 alpha:0.3].CGColor;
        self.layer.shadowOpacity = 1.0;
        self.layer.shadowOffset = CGSizeMake(0.0f, 2.0f);
        self.layer.shadowRadius = 4;
    }
    return self;
}

- (UIView *)renderView
{
    if (!_renderView) {
        _renderView = [UIView.alloc initWithFrame:CGRectMake(0, 0, self.qmui_width, self.qmui_height)];
    }
    return _renderView;
}

@end
